package com.learn.builder.normal;

import com.learn.builder.base.*;

/**
 * <p>项目名称: design-pattern </p>
 *
 * <p>文件名称: Director </p>
 *
 * director of Human Builder
 */
public class Director {

    public Human createBeautifulHuman(HumanBuild hb){
        hb.buildHead(Head.MEDDLE_HEAD);
        hb.buildBody(Body.TALL);
        hb.buildHand(Hand.NORMAL);
        hb.buildFoot(Foot.NORMAL);
        return hb.createHuman();
    }

    public Human createUglyHuman(HumanBuild hb){
        hb.buildHead(Head.BIG_HEAD);
        hb.buildBody(Body.LOW);
        hb.buildHand(Hand.SPECIAL);
        hb.buildFoot(Foot.NORMAL);
        return hb.createHuman();
    }
}
